<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<%@include file="/common/repairAddress.jsp" %>
<!DOCTYPE html>
<html>
<head>
<title>日志管理--${fns:getConfig('productName')}</title>
<%@include file="/common/uihead.jsp" %>
<%@include file="/common/upload.jsp" %>
</head>
<body>
	<ul class="nav nav-tabs" style="border:none;margin:0;">
		<c:forEach items="${list}" var="menu"  varStatus="idxStatus">
			<li class="${menu.tag eq tag?'active':''}">
				<a href="${ctx}/${menu.href}${fn:indexOf(menuChild.href, '?') eq -1?'?':'&'}left=${fns:encodeParamUrl(left)}&top=${fns:encodeParamUrl(top)}&parentId=${fns:encodeParamUrl(parentId)}&LId=${fns:encodeParamUrl(LId)}&filter_EQS_tag=${menu.tag}">
					<i class="icon icon-list" style="margin-right:10px"></i><span>${menu.name}</span>
				</a>
			</li>
		</c:forEach>
	</ul>
    <tags:message content="${msg}" />
<form id="mainForm" class="form-horizontal" role="form" method="get"  name="mainForm">
<div class="breadcrumb form-search" style="background-color: #f5f5f5;">
			<div>
				<label>关键字:</label>
				<input type="text" oninput="queryForGrid('mainForm','jqGrid')" onporpertychange="queryForGrid('mainForm','jqGrid')"  name="filter_LIKES_className_OR_username" value="${filter_LIKES_className_OR_username}" placeholder="操作用户操作类查询" />
			</div>
		</div>
  <table id="jqGrid"></table>
  <div id="jqGridPager"></div> 
</form>
	<script type="text/javascript">
	    var path = "${ctx}";
	    var tag = "${tag}";
		$(document).ready(function()
		{
			var jqgridH = $(window).height()-295;      
			$("#jqGrid").jqGrid(
			{ url : '${ctx}/log/listInfo.do',
			  mtype : "GET",
			  datatype : "json",
			  page : 1,
			  viewrecords: true,
			  colModel:[
				/* { label : "操作", name : "id", 
					  width : 150,   align : 'center', sortable : false, search : false ,
					  classes:'ui-jqgrid-optClass',
					  formatter: function (cellValue, options, rowObject){
						  
							return "<a href='javascript:void(0);' onclick='openModal(\"T_APP_ORGANIZATION\",\"" + cellValue+"\",\"" + rowObject['orgName']+"\");' id='employee' class='btn btn-primary' role='button' >上传附件&nbsp "+
							"<i class='icon icon-list' style=' margin-top:4px'></i></a>";
					  }
				}, */
                {
           	        label: '操作用户名',
           	        name: 'username',
           	     	align:'center',
           	        width: 225
                },{
           	        label: '操作时间',
           	        name: 'opTime',
           	     	align:'center',
           	        width: 175
                },
                {
           	        label: '操作类名',
           	        name: 'className',
           	     	align:'center',
           	        width: 100
                },
                {
           	        label: '操作记录ID',
           	        name: 'opID',
           	     	align:'center',
           	        width: 175
                },
                {
           	        label: '操作类型',
           	        name: 'opType',
           	     	align:'center',
           	        width: 175
                }
						],
			autowidth : false,width:$(window).width()-247, height : jqgridH,scrollOffset:0, shrinkToFit : 400, rowNum : 10, viewrecords : true, rownumbers : true,
			jsonReader:{
    			root: "result",
    			page: "currentPage",
    			total: "totalPages",
    			records: "totalCount",
    			repeatitems: true,
    			cell: "cell",
    			id: "id",
    			userdata: "userdata",
    			subgrid: {root:"results", repeatitems: true, cell:"cell"}
    		},
    		prmNames: {
				page:"pageNo",
				rows:"pageSize",
				sort: "orderBy",
				order: "order",
				search:"_search",
				nd:"nd", id:"id",
				oper:"oper",
				editoper:"edit",
				addoper:"add",
				deloper:"del",
				subgridid:"id",
				npage: null,
				totalrows:"totalCounts"
			}, 
			rowList :[10,20,30], 
			pager : "#jqGridPager"
			});
		});
</script>
<jsp:include page="/WEB-INF/views/system/attachment.jsp"/> 
</body>
</html>